package com.ruoyi.kis.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 外购入库单明细表（子表）
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
public class OsInWareOrderS {
    @JsonProperty("FInterID")
    private String FInterID;
    @JsonProperty("FEntryID")
    private String FEntryID;
    @JsonProperty("FItemID")
    private String FItemID;
    @JsonProperty("Material_Code")
    private String Material_Code;
    @JsonProperty("Batch_Number")
    private String Batch_Number;
    @JsonProperty("Number")
    private String Number;

    @JsonProperty("Material_Name")
    private String Material_Name;
    @JsonProperty("Company")
    private String Company;
    @JsonProperty("FSpecification")
    private String FSpecification;
    /**
     * 实收数量
     */
    @NotNull(message = "单据体实收数量Received不能为空")
    @JsonProperty("Received")
    private String Received;
    @NotNull(message = "单据体Warehouse不能为空")
    @NotEmpty(message = "单据体Warehouse不能为空!")
    @JsonProperty("Warehouse")
    private String Warehouse;
    @NotNull(message = "单据体FUnitID不能为空")
    @JsonProperty("FUnitID")
    private String FUnitID;
    /**
     * 应收数量
     */
    @JsonProperty("Quantity")
    private String Quantity;
    @JsonProperty("FAuxQty")
    private String FAuxQty;
    @JsonProperty("FSourceInterID")
    private String FSourceInterID;
    @NotEmpty(message = "单据体上游单据号不能为空!")
    @JsonProperty("FBillNo")
    private String FBillNo;
    @JsonProperty("FSourceEntryID")
    private String FSourceEntryID;
    @JsonProperty("FSecCoefficient")
    private String FSecCoefficient;
    @JsonProperty("FSecQty")
    private String FSecQty;
    @NotNull(message = "单据体FSourceTranType不能为空")
    @JsonProperty("FSourceTranType")
    private String FSourceTranType;
//    @NotNull(message = "单据体FPrice不能为空")
    @JsonProperty("FPrice")
    private String FPrice;
//    @NotNull(message = "单据体FAmount不能为空")
    @JsonProperty("FAmount")
    private String FAmount;
//    @NotNull(message = "单据体FAuxPrice不能为空")
    @JsonProperty("FAuxPrice")
    private String FAuxPrice;
    @JsonProperty("FComplexQty")
    private String FComplexQty;

//    @JsonProperty("FSourceBillNo")
//    private String FSourceBillNo;// 源单据号
}
